package com.itheima.reggie.service;

import com.itheima.reggie.domain.Address;

import java.util.List;

public interface AddressService {
    //查询所有
    List<Address> findAll();

    //添加
    void save(Address address);

    //设置默认值
    void setDefault(Long id);

    //查找默认值
    Address findDefault();

    //根据id查询
    Address findById(Long id);

    //修改
    void update(Address address);

    //删除
    void deleteById(Long ids);
}
